package xtgl;


import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class Department extends Model<Department>{
	public static final Department dao = new Department();
	
	public List<Department> getdept(){
		List<Department> list=dao.find("select * form dept");
		return list;
	}
	
	                  //查看第一级权限菜单
	public Department getDept(Integer dept_id){
		return Department.dao.findById(dept_id);
	}
	

}
